package com.lin.gulimall.ware.feign;

import com.lin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeignService {

    /*
    * /product/skuinfo/info/{skuId}
    * /api/product/skuinfo/info/{skuId}  如果写了这个，则西俄称@FeignClient("gulimall-gateway")，然后要配置好网关路径
    */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);


}
